package com.hibase.core.rule.service.ruletable;

import com.alibaba.fastjson.JSONObject;
import com.hibase.core.rule.entity.ruletable.query.RuleQueryResultVO;
import com.hibase.core.rule.entity.ruletable.query.RuleTableDataChangeVO;
import com.hibase.core.rule.entity.ruletable.query.TableQuerySearchVO;
import com.hibase.core.web.entity.OperationIdsEntity;

import java.util.List;
import java.util.Map;

public interface RuleTableQueryService {

    /**
     * 查询动态表数据
     * @return
     */
    RuleQueryResultVO selectTableData(TableQuerySearchVO searchVO);

    /**
     * 添加动态表数据
     */
    void changeData(RuleTableDataChangeVO insertVO);

    /**
     * 修改动态表数据
     */
    void updateData(Map<String,Object> updateVO);

    List<JSONObject> matchingData(String tableName);

    void deleteData(OperationIdsEntity idsEntity);
}
